from app import db, loginmanager
from datetime import datetime



class Role(db.Model):
    __tablename__ = 'sys_role'
    id = db.Column(db.String(36), primary_key=True)
    name = db.Column(db.String(100), unique=True, index=True, comment='角色名')
    status = db.Column(db.Integer, comment='状态 1启用 0禁用')
    create_time = db.Column(db.DateTime, default=datetime.now)
    update_time = db.Column(db.DateTime, default=datetime.now, onupdate=datetime.now)
    description = db.Column(db.String(100), comment='角色描述')

